<!DOCTYPE html>
<html>
{include file="public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
		font-size:12px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>
          <div class="nav-tabs-custom">
             <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">基本设置</a></li>  
            <li><a href="#tab_2" data-toggle="tab">邮件设置</a></li>
            <li><a href="#tab_3" data-toggle="tab">邮件发送</a></li> 
            <li><a href="#tab_4" data-toggle="tab">短信设置</a></li>
            <li><a href="#tab_5" data-toggle="tab">第三方登录</a></li>          
            </ul>          
            <form id="myform" class="myform form-horizontal"  method="post" action="{:url('up')}" load="no">
           <div class="panel-body">
           <div class="tab-content tab-fade fade active in" id="tab_1">
           <div class="row">
                <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">开启用户注册：</span>
                </div>
               <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg]" type="radio" value="0" {eq name="sys['user_reg']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg]" type="radio" value="1" {eq name="sys['user_reg']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span> 
              </div>
                <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">默认用户组：</span>
                </div>
                <div class="w200">
               <select name="sys[user_reg_default_group]" class="form-control select2" style="width:100%">
		        {volist name="group" id="item"}
                <option value="{$item['id']}" {eq name="sys['user_reg_default_group']" value="$item['id']"}selected{/eq}>
                        {$item['title']}
                </option>
		       {/volist}
                </select>
                </div>
              </div>  
                 <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">会员用户租：</span>
                </div>
                <div class="w200">
               <select name="sys[user_reg_vip_group]" class="form-control select2" style="width:100%">
		        {volist name="group" id="item"}
                <option value="{$item['id']}" {eq name="item['id']" value="$sys['user_reg_vip_group']"}selected{/eq}>
                {$item['title']}
                </option>
		       {/volist}
                </select>
                </div>
              </div>                         
              
                <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">注册登录验证码：</span>
                </div>
               <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_verify]" type="radio" value="0" {eq name="sys['user_verify']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_verify]" type="radio" value="1" {eq name="sys['user_verify']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span> 
              </div>                  

                <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">手机注册验证：</span>
                </div>
               <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg_sms]" type="radio" value="0" {eq name="sys['user_reg_sms']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg_sms]" type="radio" value="1" {eq name="sys['user_reg_sms']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span> <span class="tips">开启前请先设置短信配置</span>
              </div> 
                 <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮箱注册验证：</span>
                </div>
               <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg_email]" type="radio" value="0" {eq name="sys['user_reg_email']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_reg_email]" type="radio" value="1" {eq name="sys['user_reg_email']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span> <span class="tips">开启前请先设置邮箱配置</span>
              </div>                
              
                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">注册赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_reg_score" name="sys[user_reg_score]" value="{$sys['user_reg_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">注册时赠送的积分数量数字</span>
              </div>              

                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">注册赠送VIP：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_reg_vip" name="sys[user_reg_vip]" value="{$sys['user_reg_vip']|default='0'}" placeholder="填写天数" ><span class="tips">注册赠送VIP天数</span>
              </div>              
                

                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邀请注册积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_reg_score_uid" name="sys[user_reg_score_uid]" value="{$sys['user_reg_score_uid']|default='0'}" placeholder="填写积分数数字" ><span class="tips">邀请注册成功后赠送的积分数量</span>
              </div>              

                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">推广访问积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_visitor_score_uid" name="sys[user_visitor_score_uid]" value="{$sys['user_visitor_score_uid']|default='0'}" placeholder="填写积分数数字" ><span class="tips">推广成功访问赠送积分</span>
              </div>  
              
                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_cm_score" name="sys[user_cm_score]" value="{$sys['user_cm_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">评论一次赠送的积分数量</span>
              </div>              

                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论最多赠送：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_cm_score_day" name="sys[user_cm_score_day]" value="{$sys['user_cm_score_day']|default='0'}" placeholder="填写积分数数字" ><span class="tips">每天最多赠送多少积分</span>
              </div>  
              
             <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">添加剧情赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_story_score" name="sys[user_story_score]" value="{$sys['user_story_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">添加剧情赠送积分</span>
              </div> 
              
              <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">添加角色赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_role_score" name="sys[user_role_score]" value="{$sys['user_role_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">添加剧情赠送积分</span>
              </div> 
                                           
              <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">发起话题赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_topic_score" name="sys[user_topic_score]" value="{$sys['user_topic_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">发表话题赠送积分</span>
              </div>
              <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">话题评论赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_topic_reply_score" name="sys[user_topic_reply_score]" value="{$sys['user_topic_reply_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">话题被评论赠送积分</span>
              </div>              
               <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">添加台词赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_lines_score" name="sys[user_lines_score]" value="{$sys['user_lines_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">发表话题赠送积分</span>
              </div>
               <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">添加歌曲赠送积分：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_music_score" name="sys[user_music_score]" value="{$sys['user_music_score']|default='0'}" placeholder="填写积分数数字" ><span class="tips">发表歌曲赠送积分</span>
              </div>                              
                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论留言验证码：</span>
                </div>
                <!-- /btn-group -->
        <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_code]" type="radio" value="0" {eq name="sys['user_code']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_code]" type="radio" value="1" {eq name="sys['user_code']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span>  
              </div>              
                                               
                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论留言审核：</span>
                </div>
                <!-- /btn-group -->
         <span class="text-link form-control w200">
     <label class="pretty prettyw circle primary">
	  <input name="sys[user_check]" type="radio" value="0" {eq name="sys['user_check']" value="0"}checked{/eq}> 
	  <label><i class="default"></i> 关闭</label>
	</label>
    <label class="pretty prettyw circle primary">
	  <input name="sys[user_check]" type="radio" value="1" {eq name="sys['user_check']" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 开启</label>
	</label>
	</span>               
              </div>              

                  <div class="input-group margin15">
                              <div class="input-group-btn">
                  <span class="btn btn-default form-txt">顶踩间隔时间：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_digg_time" name="sys[user_digg_time]" value="{$sys['user_digg_time']|default='0'}" placeholder="顶踩间隔时间" ><span class="tips">顶踩间隔时间秒</span> 
              </div> 
               <div class="input-group margin15">       
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论间隔时间：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_cm_time" name="sys[user_cm_time]" value="{$sys['user_cm_time']|default='10'}" placeholder="评论两次间隔时间" ><span class="tips">多次发送评论间隔时间</span> 
              </div> 
                <div class="input-group margin15">       
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">留言间隔时间：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_gb_time" name="sys[user_gb_time]" value="{$sys['user_gb_time']|default='10'}" placeholder="留言两次间隔时间" ><span class="tips">多次发送留言间隔时间</span> 
              </div>                         


                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">评论每页显示：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_cmnum" name="sys[user_cmnum]" value="{$sys['user_cmnum']|default='10'}" placeholder="评论每页显示条数" ><span class="tips">前台评论每页显示数量</span> 
              </div>              

                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">留言每页显示：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w200" id="user_gbnum" name="sys[user_gbnum]" value="{$sys['user_gbnum']|default='10'}" placeholder="留言每页显示条数" ><span class="tips">前台留言每页显示数量</span> 
              </div>              

                  <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-txt" style="position:absolute;top:0px;">评论留言过滤：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" id="user_replace" name="sys[user_replace]"  style=" width:100%; height:100px" data-tip="多个请使用|隔开">{$sys['user_replace']}</textarea>
              </div>              
               
                                                            

                  <div class="input-group margin15">
                <div class="input-group-btn">
               <span class="btn btn-default form-txt" style="position:absolute;top:0px;">会员中心公告：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" id="user_notice" name="sys[user_notice]"  style=" width:100%; height:100px">{$sys['user_notice']}</textarea>
              </div>              
</div>
            </div>

            <div class="tab-content tab-fade fade" id="tab_2">
            <div class="row">
                <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮件发送方式：</span>
                </div>
                <!-- /btn-group -->
            <select name="mail[mail_type]" class="form-control select2" style="width:100%">
              <option value="0">选择发送方式</option>
              <option value="1" {eq name="mail['mail_type']" value="1"}selected{/eq}>SMTP</option>
              <option value="2" {eq name="mail['mail_type']" value="2"}selected{/eq}>Mail</option>
         </select>
              </div>            
            
                 <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">SMTP 服务器：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="mail_smtp_host" name="mail[mail_smtp_host]" value="{$mail['mail_smtp_host']|default=''}" placeholder="SMTP服务器地址" >
              </div>            
                 <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮件发送端口：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="mail_smtp_port" name="mail[mail_smtp_port]" value="{$mail['mail_smtp_port']|default=''}" placeholder="一般为25,QQ邮箱为465">
              </div> 
                 <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮件发送名称：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="mail_from" name="mail[mail_from]" value="{$mail['mail_from']|default=''}" placeholder="填写完整邮箱" >
              </div> 
                  <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮箱用户名：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="mail_smtp_user" name="mail[mail_smtp_user]" value="{$mail[mail_smtp_user]|default=''}" placeholder="填写完整邮箱,QQ邮箱填写QQ号码">
              </div>  
                   <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">邮箱密码：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="mail_smtp_pass" name="mail[mail_smtp_pass]" value="{$mail['mail_smtp_pass']|default=''}" placeholder="邮箱密码，如果是qq邮箱填写授权码,163邮箱则填安全密码"> 
              </div>  
              
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">SMTP验证方式：</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group w70">
            <select name="mail[mail_verify_type]" class="form-control select2" style="width:100%">
                  <option value="0">无</option>
                  <option value="1" {eq name="mail['mail_verify_type']" value="1"}selected{/eq}>TLS</option>
                  <option value="2" {eq name="mail['mail_verify_type']" value="2"}selected{/eq}>SSL</option>
         </select></div><span class="tips" style="float:none; float:left">163邮箱选择：无 QQ邮箱选择SSL</span> 
              </div> 
                         <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">测试EMAIL地址：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control" id="mail_test" name="mail[mail_test]" value="{$mail['mail_test']|default=''}" placeholder="填写邮件发送配置后，填写接收地址进行测试" >
             <span class="input-group-btn">
             <button type="button" class="btn  btn-primary btn-flat testmail">发送测试邮件</button>
             </span>
              </div>                                                                 
            </div>
            
            </div>
             <div class="tab-content tab-fade fade" id="tab_3">
             <div class="row">
     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">验证码发送标题：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="user_code_title" name="sys[user_code_title]" value="{$sys['user_code_title']|default=''}"> 
              </div> 
              
                    <div class="input-group margin15">
                <div class="input-group-btn">
               <span class="btn btn-default form-txt" style="position:absolute;top:0px;">验证码发送内容：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control summernote" id="user_code_msg" name="sys[user_code_msg]"  style=" width:100%; height:200px">{$sys['user_code_msg']|default=''}</textarea>
            网站名称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_code_msg" data-id="{site_name}" title="网站名称">{site_name}</a> 
            网站地址：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_code_msg" data-id="{site_url}" title="网站地址">{site_url}</a> 
            操作类型：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_code_msg" data-id="{type}" title="操作类型">{type}</a>
            验证码：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_code_msg" data-id="{code}" title="验证码">{code}</a>
              </div>               
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">注册认证标题：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="user_reg_title" name="sys[user_reg_title]" value="{$sys['user_reg_title']|default=''}"> 
              </div> 
              
                    <div class="input-group margin15">
                <div class="input-group-btn">
               <span class="btn btn-default form-txt" style="position:absolute;top:0px;">注册认证内容：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control summernote" id="user_reg_msg" name="sys[user_reg_msg]"  style=" width:100%; height:200px">{$sys['user_reg_msg']|default=''}</textarea>
            网站名称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{site_name}" title="网站名称">{site_name}</a> 
            网站地址：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{site_url}" title="网站地址">{site_url}</a> 
            用户昵称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{user_nickname}" title="用户昵称">{user_nickname}</a>
            用户主页：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{user_url}" title="用户主页">{user_url}</a> 
            用户邮箱：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{user_email}" title="用户邮箱">{user_email}</a>
            认证连接：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_reg_msg" data-id="{link_url}" title="认证连接">{link_url}</a>
              </div>  
                      <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">密码找回标题：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="user_pwd_title" name="sys[user_pwd_title]" value="{$sys['user_pwd_title']|default=''}"> 
              </div>                           
               <div class="input-group margin15">
                <div class="input-group-btn">
               <span class="btn btn-default form-txt" style="position:absolute;top:0px;">密码找回内容：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control summernote" id="user_pwd_msg" name="sys[user_pwd_msg]"  style=" width:100%; height:200px">{$sys['user_pwd_msg']|default=''}</textarea>
            网站名称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{site_name}" title="网站名称">{site_name}</a> 
            网站地址：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{site_url}" title="网站地址">{{site_url}</a> 
            用户昵称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{user_nickname}" title="用户昵称">{user_nickname}</a>
            用户主页：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{user_url}" title="用户主页">{ {user_url}</a> 
            用户邮箱：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{user_email}" title="用户邮箱">{user_email}</a>
            找回连接：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_pwd_msg" data-id="{link_url}" title="找回连接">{link_url}</a>
              </div>              
            <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">订阅发送邮件：</span>
                </div>
                <!-- /btn-group -->
            <select name="sys[user_remind_auth]" class="form-control select2" style="width:100%">
              <option value="1">开启</option>
              <option value="0" {eq name="sys['user_remind_auth']" value="0"}selected{/eq}>关闭</option>
         </select>
              </div>  
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">订阅发送标题：</span>
                </div>
                <!-- /btn-group -->
            <input type="text" class="form-control text-left" id="user_remind_title" name="sys[user_remind_title]" value="{$sys['user_remind_title']|default=''}"> 
              </div>              
            <div class="input-group margin15">
                <div class="input-group-btn">
               <span class="btn btn-default form-txt" style="position:absolute;top:0px;">邮件发送内容：</span>
                <span class="form-txt-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control summernote" id="user_remind_msg" name="sys[user_remind_msg]"  style=" width:100%; height:200px">{$sys['user_remind_msg']|default=''}</textarea>
                        网站名称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{site_name}" title="网站名称">{site_name}</a> 
            网站地址：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{site_url}" title="网站地址">{site_url}</a> 
            用户昵称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{user_nickname}" title="用户昵称">{user_nickname}</a>
            用户主页：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{user_url}" title="用户主页">{user_url}</a> 
            用户邮箱：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{user_email}" title="用户邮箱">{user_email}</a>
            会员中心：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{user_center_url}" >{user_center_url}</a>
            订阅地址：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{user_center_remind_url}">{user_center_remind_url}</a>
            视频名称：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_name}">{vod_name}</a>
            视频连接：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_readurl}">{vod_readurl}</a>
            视频图片：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_picurl}">{vod_picurl}</a>            视频备注：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_title}">{vod_title}</a>            视频主演：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_actor}">{vod_actor}</a>
            视频导演：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_director}">{vod_director}</a>
            视频地区：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_area}">{vod_area}</a>
            视频年代：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_year}">{vod_year}</a>
            视频语言：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_language}">{vod_language}</a>        视频简介：<a class="text-link" href="javascript:" id="dir_html_add" data-name="user_remind_msg" data-id="{vod_content}">{vod_content}</a>
              </div>        
                          
             </div>
             
             
  
            </div>  
             <div class="tab-content tab-fade fade" id="tab_4">
             <div class="row">
             <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">短信服务商：</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group-t w50 search">
            <select name="sms[sms_type]" class="form-control select2" style="width:100%">
              <option value="">选择服务商</option>
              <option value="Qcloud" {eq name="sms['sms_type']" value="Qcloud"}selected{/eq}>腾讯云短信</option>
              <option value="Aliyun" {eq name="sms['sms_type']" value="Aliyun"}selected{/eq}>阿里云短信</option>
         </select>
         </div>
              </div>             
                   <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppId：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_appid" name="sms[sms_appid]" value="{$sms['sms_appid']|default=''}"><span class="tips">腾讯云对应AppId，阿里云对应KeyId</span> 
              </div>             
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppKey：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_appkey" name="sms[sms_appkey]" value="{$sms['sms_appkey']|default=''}"><span class="tips">腾讯云对应AppKey，阿里云对应KeySecret</span> 
              </div>              
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">短信签名：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_sign" name="sms[sms_sign]" value="{$sms['sms_sign']|default='赞片CMS'}">
              </div>              
                      <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">注册模板编号：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_tpl_reg" name="sms[sms_tpl_reg]" value="{$sms['sms_tpl_reg']|default=''}"><span class="tips">模板编号需要在服务商短信控制台中申请</span> 
              </div> 
             
             <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">绑定模板编号：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_tpl_bind" name="sms[sms_tpl_bind]" value="{$sms['sms_tpl_bind']|default=''}"><span class="tips">模板编号需要在服务商短信控制台中申请</span> 
              </div>                          

 
              <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">找回模板编号：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="sms_tpl_forgetpwd" name="sms[sms_tpl_forgetpwd]" value="{$sms['sms_tpl_forgetpwd']|default=''}"><span class="tips">模板编号需要在服务商短信控制台中申请</span> 
              </div>                          
             </div> 
             <div class="callout">
提示信息：<br>
请务必按照短信接口服务商的要求做好短信签名和短信内容的设置。<br>
腾讯云短信：https://cloud.tencent.com/product/sms<br>
腾讯云短信模板例子：<br>
尊敬的用户，您的注册会员验证码为：{1}，请勿泄漏于他人！<br>
验证码为：{1}，您正在绑定手机，若非本人操作，请勿泄露。<br>
验证码为：{1}，您正在进行密码重置操作，如非本人操作，请忽略本短信！<br>
阿里云短信：https://www.aliyun.com/product/sms<br>
阿里云短信模板例子：<br>
尊敬的用户，您的注册会员验证码为：${code}，请勿泄漏于他人！<br>
验证码为：${code}，您正在绑定手机，若非本人操作，请勿泄露。<br>
验证码为：${code}，您正在进行密码重置操作，如非本人操作，请忽略本短信！
</div> 
            </div>                    
           <!-- /.tab-content --> 
           
              <div class="tab-content tab-fade fade" id="tab_5">
             <div class="row">
<!--             <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">绑定用户：</span>
                </div>
                <div class="select-group-t w50 search">
            <select name="api[auth]" class="form-control select2" style="width:100%">
              <option value="0">关闭</option>
              <option value="1" {eq name="sns['sns_auth']" value="1"}selected{/eq}>开启</option>
         </select>
         </div>
              </div>  --> 
                   <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppId：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_qq_appid" name="api[qq_appid]" value="{$api['qq_appid']|default=''}"><span class="tips">对应腾讯QQ AppId</span> 
              </div>             
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppKey：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_qq_appkey" name="api[qq_appkey]" value="{$api['qq_appkey']|default=''}"><span class="tips">对应腾讯 AppKey</span> 
              </div>              
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">QQ回调地址：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_qq_callback" name="api[qq_callback]" value="{$api['qq_callback']|default=''}"><span class="tips">一般只需要修改域名</span> 
              </div>
                <span style="display:block; margin:15px;background-color: #f4f4f4; padding:10px 20px 10px 20px; text-align:center">微信扫码登录配置</span>          
                   <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppId：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weixin_appid" name="api[weixin_appid]" value="{$api['weixin_appid']|default=''}"><span class="tips">对应微信 AppId</span> 
              </div>             
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppKey：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weixin_appkey" name="api[weixin_appkey]" value="{$api['weixin_appkey']|default=''}"><span class="tips">对应微信 AppKey</span> 
              </div>              
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">微信回调地址：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weixin_callback" name="api[weixin_callback]" value="{$api['weixin_callback']|default=''}"><span class="tips">一般只需要修改域名</span> 
              </div>             

                  <span style="display:block; margin:15px;background-color: #f4f4f4; padding:10px 20px 10px 20px; text-align:center">微博登录配置</span>
              
              
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppId：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weibo_appid" name="api[weibo_appid]" value="{$api['weibo_appid']|default=''}"><span class="tips">对应微博 AppId</span> 
              </div>             
                    <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">AppKey：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weibo_appkey" name="api[weibo_appkey]" value="{$api['weibo_appkey']|default=''}"><span class="tips">对应微博 AppKey</span> 
              </div>              
                     <div class="input-group margin15">
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">微博回调地址：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control text-center w50" id="api_weibo_callback" name="api[weibo_callback]" value="{$api['qq_callback']|default=''}"><span class="tips">一般只需要修改域名</span> 
              </div>                             
               
</div>
            </div>                    
           <!-- /.tab-content -->           
         </div>
         <!-- /.panel-body --> 
         
        <div class="layui-layer-footer">
            <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">修改</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
            </div>
       </div> 
              </form> 
          </div>
          <!-- /.nav-tabs-custom -->
        </div>
        </div>
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
	zanpian.api.js('tpl/zanpianadmin/libs/summernote-master/dist/summernote.min.js');
    zanpian.api.js('tpl/zanpianadmin/libs/summernote-master/dist/lang/summernote-zh-CN.min.js');
	zanpian.api.css('tpl/zanpianadmin/libs/summernote-master/dist/summernote.css');	
	zanpian.form.summernote('.summernote');
			$('body').on("click", "#dir_html_add", function() {
				var name = $(this).attr('data-name');
				var value = $(this).attr('data-id');
				$('#'+name).summernote('insertText',value);
				return false;
			});		
	$(document).on("click", ".testmail", function (){
			$.ajax({
				type: "post",
				url: '{:url('testmail')}',
				data: $('#myform').serialize(),
				dataType: 'json',
				success: function(json) {
					if (json.code == 1){
						layer.msg(json.msg ? json.msg : '发送成功', {zIndex:layer.zIndex,icon: 1,time: 500});
					} else{
						layer.confirm(json.msg ? json.msg : '发送失败', {zIndex:layer.zIndex,icon: 2,time: 2000});
					}
				},
				error: function(json) {
					layer.confirm('程序返回：' + json.status + ' 错误,点击查看详细错误', {zIndex:layer.zIndex,icon: 5, title:'出错啦！',btn: ['查看', '关闭']}, function() {
						$('html').html(json.responseText);
					});
				},
			});
			return false;												   
    });	 	
});	
</script>
</body>
</html>
